package com.eg366.nioLearn.baseSocket.chapter05;

import java.io.IOException;
import java.nio.channels.SelectionKey;

/**
 * 回显协议接口
 * @author eg366
 *
 */
public interface TcpProtocol {

	void handleAccept(SelectionKey key) throws IOException;

	void handleRead(SelectionKey key) throws IOException;

	void handleWrite(SelectionKey key) throws IOException;
}
